package com.umakr.demo.service;

import com.umakr.demo.mapper.BanjiStudentMapper;
import com.umakr.demo.model.BanjiStudent;
import com.umakr.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/22.
 */
@Service
public class BanjiStudentService {
    @Autowired
    BanjiStudentMapper banjiStudentMapper;

    public List<Student> banjiShowStudent(Long bid){
        return banjiStudentMapper.banjiShowStudent(bid);
    }

    public void addAll(BanjiStudent banjiStudent){
        banjiStudentMapper.addAll(banjiStudent);
    }

    public void deleteAll(Long bid){
        banjiStudentMapper.deleteAll(bid);
    }
}
